package com.example.shixun1.renttest.main.fragment;



import android.app.LocalActivityManager;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;


import java.util.ArrayList;
import java.util.List;
import com.example.renttest.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class IndexFragment extends Fragment {

    public IndexFragment() {
        // Required empty public constructor
    }

    LocalActivityManager localActivityManager;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_index, container, false);

//                LocalActivityManager
        localActivityManager = new LocalActivityManager(getActivity(), true);
        localActivityManager.dispatchCreate(savedInstanceState);
        view = localActivityManager.startActivity("1", new Intent(
                getActivity(),
                Zhujiemian.class
        )).getDecorView();


        return view;
    }



    @Override
    public void onDestroy() {
        super.onDestroy();
    }
}
